<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $theme_data['title']; ?></title>
<meta name="keyword" content="<?php echo $theme_data['keyword']; ?>">
<meta name="description"
	content="<?php echo $theme_data['description']; ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
    <?= Settings::get('en','google_analytics');?>
    </script>

<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/css/bootstrap-reset.css">

<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/css/normalize.css">

<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/css/main.css">
<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/css/newcss/easy-responsive-tabs.css">
<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/css/newcss/newcss.css">
<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/select2/select2.css">
<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/select2/select2-bootstrap.css">


<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets/font-awesome-4.2.0/css/font-awesome.min.css">

<link rel="stylesheet" type="text/css"
	href="<?= URL::base(); ?>/themes/default/assets//css/custom.css">
<?php echo $theme_data['metadata']; ?>

<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->

</head>

<body class="loading inner newpage" data-baseurl="<?= URL::base(); ?>">
	<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
    your browser</a> to improve your experience.</p>
<![endif]-->


	<!-- the header that will be animated by adding the respective state class to it -->
	<?php echo theme_partial("header"); ?>

	<!-- the sections with triggers -->
	<section id="slide-1" class="ha-waypoint">
		<div class="bcg11">
			<div class="hsContainer">
				<div class="hsContent">
					<div class="innerpageContent">
						<div class="newpge row">

							<div class="col-lg-12">

								<?php echo theme_partial("search"); ?>

							</div>

						</div>

						<?php echo theme_partial("counter"); ?>

						<div class="row">
							<div class="breadcrums">


								<?php echo $breadcrumb; ?>
							</div>
						</div>




						<div class="twocol row">

							<div class="col-sm-3 lsidebar">
								<!-- WIDGET FILTER CATEGORY -->
								<?php if($mode == "CAT"){?>
								<?= HMVC::get('Category::widget.filter@category',array($category->id));?>
								<?php }?>
								<?php if($mode == "LOC"){?>
								<?= HMVC::get('Category::widget.filter@cat');?>
								<?php }?>

								<?php if($mode == "LISTING"){?>
								<?= HMVC::get('Category::widget.filter@cat');?>
								<?php }?>

								<?php if($mode == "PRODUCTS"){?>
								<?= HMVC::get('Products::widget.filter@pro');?>
								<?php }?>
								<?php if($mode == "LEAD"){?>
								<?= HMVC::get('Products::widget.filter@prolead');?>
								<?php }?>
								

								
							</div>
							<!-- /.col-sm-3 -->

							<div class="col-sm-6">

								<?php echo $theme_content; ?>


							</div>
							<!-- /.col-sm-6 -->
							<div class="col-sm-3">

								<?php 
										if(isset($map)){?>
								<div class="widget">

									<div class="widgetTitle">
										<h3>Location</h3>
									</div>
									<!-- /.widgetTitle -->
									<div class="widgetContent map">

										<?php if($listings){?>
										<?php echo $map['js']; ?>
										<?php echo $map['html']; ?>
										<?php }?>
									</div>
									<!-- /.widgetContent -->
								</div>
								<!-- /.widget -->

								<?php }?>

								<?php if($mode == "CAT" || $mode == "LOC" || $mode == "LISTING"){?>
								
								<?= HMVC::get('Site::widget.featured@index');?>
								<!-- RECENT LISTING -->
								<?= HMVC::get('Site::widget.recent@index');?>

								<?php }?>
								<?php if($mode == "PRODUCTS"){?>
								<?= HMVC::get('Products::widget.recent@products');?>
								<?php }?>
								
								<?php if($mode == "LEAD"){?>
								<?= HMVC::get('Products::widget.recent@products');?>
								<?php }?>
							</div>
							<!-- /.col-sm-3 -->

						</div>




					</div>
				</div>
				<!-- /.bcg -->
			</div>
			<!-- /.hsContainer -->
		</div>
		<!-- /.hsContent -->
	</section>
	<!-- /#slide-1 -->
	<?= HMVC::get('Site::widget.footer@index'); ?>
	<!-- /#slide-3 -->



	<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
	<!-- Java Script -->
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/modernizr-2.6.2.min.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/jquery-1.10.2.js"></script>
	<script src="<?= URL::base(); ?>/themes/default/assets/js/jquery-ui.js"></script>
	<script
		src="<?=URL::base();?>/themes/default/assets/js/bootstrap.min.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/AC_RunActiveContent.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/newjs/easyResponsiveTabs.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/select2/select2.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/jquery.livequery.js"></script>
	<script src="<?= URL::base(); ?>/themes/default/assets/js/myJS.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/autocomplete.js"></script>
	<script
		src="<?= URL::base(); ?>/themes/default/assets/js/newjs/custom.js"></script>


</body>
</html>
